package com.br.aiops.schedule.judge;

import com.br.aiops.counter.AlertLogCounter;
import com.br.aiops.schedule.AbstractSchedule;

public class AlertTimesResumeJudge implements ResumeJudge {

    @Override
    public boolean isResume(AbstractSchedule schedule, AlertLogCounter alertLogCounter) {
        if (schedule.getCount(alertLogCounter) <= alertLogCounter.getRule().getResumeTimes()) {
            return true;
        }
        return false;
    }
}
